Skip to content

Fix returning data and error for multiple resolvers #25

New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Merged
merged 1 commit into from
Nov 18, 2021

Conversation

DifferentialOrange
Copy link
Member

Rework of #19 . Additional test was reworked so both resolvers return error. Added description to commit message, removed #18 commit from PR.

Copy link
Member

@Totktonada Totktonada left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

LGTM.

32c97f0 introduced returning data and errors acc. spec #7.1.2 but
previous implementation didn't take into account that execution may
include multiple resolvers and each of them may return both data and
errors. This PR fixes the logic to collect all errors from all resolvers
into a single array that can be returned to requester.

Based on PR #19 by @no1seman
@DifferentialOrange DifferentialOrange force-pushed the DifferentialOrange/no1seman-data_errors_improved branch from 697e928 to c4d03b7 Compare November 18, 2021 06:48
@DifferentialOrange
Copy link
Member Author

DifferentialOrange commented Nov 18, 2021

Resolved all minor comments. PR is ready to merge

@Totktonada Totktonada merged commit a20e597 into master Nov 18, 2021
@Totktonada Totktonada deleted the DifferentialOrange/no1seman-data_errors_improved branch November 18, 2021 07:50
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

4 participants